package com.qing.expert.modules.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qing.expert.modules.user.entity.BalanceRecord;
import com.qing.expert.modules.user.vo.response.BalanceRecordVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface BalanceRecordMapper extends BaseMapper<BalanceRecord> {

    /**
     * 分页查询用户余额变动记录
     */
    Page<BalanceRecordVO> selectBalanceRecords(Page<BalanceRecordVO> page, @Param("userId") String userId);
}